#ifndef SQLEDITOR_H
#define SQLEDITOR_H

#include <QMainWindow>
#include <QSqlTableModel>
#include <QSqlDatabase>

namespace Ui {
    class SqlEditor;
}

class SqlEditor : public QMainWindow
{
    Q_OBJECT

public:
    explicit SqlEditor(QWidget *parent = 0, QSqlDatabase db = QSqlDatabase());
    ~SqlEditor();

private slots:
    void on_tableComboBox_currentIndexChanged(const QString &arg1);
    void on_addRowButton_clicked();
    void on_removeRowButton_clicked();

    void on_queryExecuteButton_clicked();

private:
    Ui::SqlEditor *ui;

    QSqlTableModel* model;
    QSqlDatabase db;
};

#endif // SQLEDITOR_H
